﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="LogList.aspx.cs" Inherits="Runda.CMS.Portal.SysManage.LogList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content runat="server" ContentPlaceHolderID="cphHead" ID="myhead">
    <script src = "../Content/util.js" type="text/javascript"></script>
    <script src ="../Content/lookup/Lookup.js" type="text/javascript"></script>
    <script src="../Content/global.js" type="text/javascript"></script>     
    <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
     
    </asp:Content>
    <asp:Content runat="server" ContentPlaceHolderID="cphBody" ID="Content1">
   
         <div class="Container">
         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>日志列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                        <span class="menu" tabindex="0" menu="appGridMenu_mainmnu"><img src="../Content/Grid/mnuDown.gif">
                            <table id="appGridMenu_mainmnu" class="mnuList" cellspacing="0" cellpadding="3">
                                <colgroup>
                                    <col class="mnuLeft">
                                    <col class="mnuItm">
                                    <col align="right" width="20">
                                    <tbody>
                                        <tr tabindex="0"  action="">
                                            <td>
                                            </td>
                                            <td colspan="2" nowrap>
                                                 
                                            </td>
                                        </tr>
                                    </tbody>
                            </table>
                        </span>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                      
                    </td>
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
             <asp:Repeater ID="RepeaterLogs" runat="server" 
                 OnItemCommand="RepeaterLogs_ItemCommand" 
                 onitemdatabound="RepeaterLogs_ItemDataBound">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">                  
                    <td align="middle" style="width:50px">日志类型
                    </td>    
                    <td align="middle" style="width:80px">相关组件
                    </td>     
                    <td align="middle" style="width:60px">操作人
                    </td>
                     <td align="middle" style="width:60px">操作IP
                    </td>
                      <td align="middle" style="width:500px">描述
                    </td>  
                      <td align="middle" style="width:110px">日期
                    </td>  
                    <td width="13px">
                        <asp:ImageButton ID="imgbtnRefersh" Width="13px" Height="13px" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" onclick="handleClick()" oid='<%# Eval("logGUID")%>'>                  
                    <td><%#Eval("LogType") .ToString() == "Error"? "内部错误" : "系统操作" %></td>
                    <td><%#Eval("KeyWord")%></td>
                      <td>
                                <asp:Label ID="lblOperator" runat="server" Text = '<%#Eval("Operator")%>' Visible="false"></asp:Label>
                                <asp:Label ID="lblEmployeeName" runat="server"></asp:Label>
                    </td>
                        <td><%#Eval("OperatorIP")%></td>
                    <td><%#Eval("Remark")%></td> 
                      <td><%#Eval("CreatedOn")%></td> 
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>                           
               <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator"  
                            CurrentPageButtonClass="cpb" 
                            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                            SubmitButtonClass="but" SubmitButtonText="转到" 
                 OnPageChanged="AspNetPager1_PageChanged" PageSize="20">
                        </webdiyer:AspNetPager>    
         </div>        
</asp:Content>
